#include "pch.h"
#include "Info.h"
#include "Datainterface.h"

Info::Info()
{

}

Info::Info(string name, string sex, string tele, string address, string mailcode, string mail, string QQ, string type)
{
	this->m_name = name;
	this->m_sex = sex;
	this->m_tele = tele;
	this->m_address = address;
	this->m_mailcode = mailcode;
	this->m_mail = mail;
	this->m_QQ = QQ;
	this->m_type = type;
}

void Info::Read(istream& in) {
	in >> m_name;
	in >> m_sex;
	in >> m_tele;
	in >> m_address;
	in >> m_mailcode;
	in >> m_mail;
	in >> m_QQ;
	in >> m_type;
}

void Info::Save(ofstream& out) {
	out << m_name << "\t";
	out << m_sex  << "\t";
	out << m_tele << "\t";
	out << m_address << "\t";
	out << m_mailcode << "\t";
	out << m_mail << "\t";
	out << m_QQ << "\t";
	out << m_type << "\n";
}

